package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

public interface EmployeeService {

    //用户登录
    R<Employee> login(Employee employee);

    //添加员工
    void save(Employee employee);

    /*
    员工分页列表
     */
    Page<Employee> findByPage(Integer page, Integer pageSize, String name);

    /*
    修改员工信息
     */
    void updateEmp(Employee employee);

    /**
     * 根据id查找员工
     * @param id
     * @return
     */
    Employee findById(Long id);
}
